import { defineUserConfig } from "vuepress";
import recoTheme from "vuepress-theme-reco";
import { viteBundler } from '@vuepress/bundler-vite'
// import { webpackBundler } from '@vuepress/bundler-webpack'
import series from "./config/series"
import navbar from "./config/navbar"
import bulletin from "./config/bulletin.ts"
export default defineUserConfig({
  title: "last-year-components",
  description: "Just playing around",

  bundler: viteBundler(),
  // bundler: webpackBundler(),
  theme: recoTheme({
    style: "@vuepress-reco/style-default",
    logo: "/logo.png",
    author: "LastYear",
    authorAvatar: "/head.png",
    docsRepo: "https://github.com/vuepress-reco/vuepress-theme-reco-next",
    docsBranch: "main",
    docsDir: "example",
    lastUpdatedText: "",
    // series 为原 sidebar
    series: series,//路由
    navbar: navbar,//导航栏
    bulletin: bulletin,//公告
    // commentConfig: {
    //   type: 'valine',
    //   // options 与 1.x 的 valineConfig 配置一致
    //   options: {
    //     appId: 'xxx',
    //     appKey: 'xxx',
    //     placeholder: '填写邮箱可以收到回复提醒哦！',
    //     verify: true, // 验证码服务
    //     notify: true,
    //     recordIP: true,
    //     hideComments: true // 隐藏评论
    //   },
    // },
  }),
  // debug: true,
});
